<?php

/**
 * Description of g
 * 
 * @author 叶风
 * Qq:    355007778
 * Email: ye.fn@163.com
 */

namespace c\msg;

class g extends \control
{
    var $table = 'msg';
    
    function to($user_id, $txt, $from_user=0)
    {
        $d = array('to_user'=>$user_id,
                'content'=>$txt,
                'from_user'=>$from_user);
        return $this->db->save($this->table, $d);
    }
}
